import { useStatusActions } from "./../../context";
import "./index.css";

export default function Operate() {
  const { onStart, onPause, onReset } = useStatusActions();

  return (
    <div className="operation">
      <button onClick={onStart}>开始</button>
      <button onClick={onPause}>暂停</button>
      <button onClick={onReset}>重置</button>
    </div>
  );
}
